import Vue from 'vue'
/** 
 * 病患下单检测服务
 */
export default {
    /**
     * 自主下单
     * @param {*} [params={}]
     * @param {*} [config={}]
     * @returns
     */
    async createOrderInfo(params = {}, config = {}) {
        let result = await Vue.http.post('/UserOrderInfo/CreateOrderInfo', params, config);
        return result;
    },
    /**
     * 获取用户订单列表
     * @param {*} params 
     * @param {*} config 
     */
    async GetUserOrderInfoByUserID(params = {}, config = {}) {
        config.params = params;
        let result = await Vue.http.get('/UserOrderInfo/GetUserOrderInfoByUserID', config);
        return result;
    },
    /**
     * 获取订单列表
     * @param {*} params 
     * @param {*} config 
     */
    async GetUserOrderInfoList(params = {}, config = {}) {
        config.params = params;
        let result = await Vue.http.get('/UserOrderInfo/GetUserOrderInfoList', config);
        return result;
    },
    /**
     * 通过订单号获取订单详情
     * @param {*} [params={OrderID}]
     * @param {*} [config={}]
     * @returns
     */
    async GetOrderDetailModelByOrderID(params = {}, config = {}) {
        config.params = params;
        let result = await Vue.http.get('/UserOrderInfo/GetOrderDetailModelByOrderID', config);
        return result;
    }
}